<div class="main">
  <div class="leftpane">
    <tal:block tal:omit-tag="" tal:content="structure php: this.action('left','header','header')" />
    </div>
  <div class="rightpane">
    <div class="heading">
      <h2>Sign In</h2>
      <h3>Follow us</h3>
      <img src="/images/rss.jpg" /> <img src="/images/facebook.jpg" /> <img src="/images/twitter.jpg" /> <img src="/images/linkedin.jpg" /> <img src="/images/wordpress.jpg" /> </div>
    
    
    <div class="content">
    <div class="validationEoor"><b>${message}</b></div>
<form id="form1" name="form1" method="post" action="/user/login/check-login" onsubmit="return validateRegistration();">
<fieldset>
<legend>Sign In  <a href="/register"> Sign up</a> </legend> 
	<label accesskey="e" class="required" for="email">Email: </label>
		<input type="text" name="emailAddress"  id="emailAddress" title="Please enter email address" /><span  id="divEmailAddress" class="validationError"></span><br />
      <label accesskey="1" class="required"  for="website">Password: </label>  
        <input type="password" name="password"  id="password" title="Please enter password" /><span id="divPassword" class="validationError"></span><br />
        <small><a  href="/register/index/forgot-password/">Forgot your password? Click Here!</a></small><br/>
        <label for="kludge"></label>
        <input name="" type="submit" value="Login" class="input_bt"  /> <input type="reset" accesskey="c" tabindex="6" id="reset" />
		
</fieldset>

</form>
      
  </div>
</div>
</div>
<div class="clear"></div>
<script type="text/javascript">
function validateRegistration()
{
	if($('#emailAddress').val()==''){
		$('#divEmailAddress').html($('#emailAddress').attr("title"));
		$('#divEmailAddress').show('slow');
		$('#emailAddress').focus();
		return false;
	} else {
		if(isValidEmailAddress($('#emailAddress').val()))
		{
			$('#divEmailAddress').html('');
		} else {
			$('#divEmailAddress').html('Please enter valid email address');
			return false;
		}
		
	}
	if($('#password').val()==''){
		$('#divPassword').html($('#password').attr("title"));
		$('#divPassword').show('slow');
		$('#password').focus();
		return false;
	} else {
		$('#divPassword').html('');
	}
		
}
function isValidEmailAddress(emailAddress)
{

var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
return pattern.test(emailAddress);
}

</script>


